import { PORT4 } from "@/api/config/servicePort";
import http from "@/api";

// 多个请求同时请求
export const promiseAllApi = async (reqArr: Array<Promise<unknown>>) => {
  const resArr = await Promise.all(reqArr);
  return resArr;
};

// 查询字典值
export const descriptionFindDescriptionByKey = (params: { code: string }) => http.get(PORT4 + `/dictionary/findByCode`, params);
